<div id="content">
    	       <h2> ADD CUSTOMER FORM</h2>
        <div class="clear"></div>
  </div>    
<div id="content">
<?php if (!empty($this->message)):?>
	<div class="errorbox">
	<?php foreach ($this->message as $item)
			echo "<p>$item</p>";
	?>
	</div>
<?php endif;?>
    	  <form class="myform" action="" method="post">
          	<table class="childtable" width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="14%" align="right">First Name</td>
    <td width="42%" align="left"><input value="<?php echo $this->cusItem['customer_fname'];?>" type="text" name="customer_fname" size="40" /></td>
    <td width="44%" colspan="2" rowspan="4" valign="top" align="left">
    <h2 style="margin-bottom:5px">About My Customer</h2>
    <textarea cols="80" name="customer_description" rows="9"><?php echo $this->cusItem['customer_description'];?></textarea>
    	
    </td>
    </tr>
  <tr>
    <td align="right">Last Name</td>
    <td align="left">
    	<input value="<?php echo $this->cusItem['customer_lname'];?>" type="text" name="customer_lname" size="40" />
    	</td>
    </tr>
  <tr>
    <td>Email 
      </td>
     <td><input value="<?php echo $this->cusItem['customer_email'];?>" type="text" name="customer_email" size="40" /></td> 
    </tr>
  <tr>
    <td>Phone </td>
     <td><input type="text" value="<?php echo $this->cusItem['customer_phone'];?>" name="customer_phone" size="40" /></td> 
    </tr>  
   <tr>
    <td>Address</td>
     <td><input value="<?php echo $this->cusItem['customer_address'];?>" type="text" name="customer_address" size="40" /></td> 
      <td><input class="button" type="submit" name="btnSave" value="Save" /></td> 
    </tr> 
	 <tr>
    <td>Birth Day </td>
     <td><input type="text" value="<?php echo empty($this->cusItem['customer_birthday'])?"":date('d-m-Y',strtotime($this->cusItem['customer_birthday']));?>" name="customer_birthday" size="40" /></td> 
    </tr>  
    </table>

</form>      
        <div class="clear"></div>
  </div>

 <?php

 	$tmpArray = array(
 		'page' => $this->currentPage
 	); 
 	echo $this->action('listcustomer','customer',null,$tmpArray);
 ?>